package com.kzw.oa.system.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kzw.core.service.hibernate.DefaultEntityManager;
import com.kzw.oa.system.model.FunUrl;

@Service
@Transactional
public class FunUrlService extends DefaultEntityManager<FunUrl, Long> {

	@Transactional(readOnly = true)
	public FunUrl getByPathAndFunId(String path, Long functionId) {
		String hql = "from FunUrl where urlPath=? and appFunction.functionId=?";
		return getEntityDao().findUnique(hql, path, functionId);
	}

}
